package com.un.ebs.sys.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.un.ebs.core.metadata.DbField;
import lombok.Data;
import org.springframework.stereotype.Component;

import java.io.Serializable;

/**
 * (PageClass)表实体类
 *
 * @author liubo
 * @since 2020-12-30 09:19:16
 */
@Data
@Component
@TableName("sys_page_class")
@SuppressWarnings("serial")
public class PageClass extends Model<PageClass> {

    @TableId(value = "id", type = IdType.UUID)
    private String id;


    @DbField(name = "name", length = 200, precision = 0)
    private String name;

    @DbField(name = "parent_id", length = 40, precision = 0)
    @TableField(updateStrategy = FieldStrategy.IGNORED)
    private String parentId;

    @DbField(name = "sort", length = -1, precision = 0)
    private Integer sort;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at", length = 40, precision = 0)
    private String createAt;

    @TableField(fill = FieldFill.INSERT)
    @DbField(name = "create_at_name", length = 100, precision = 0)
    private String createAtName;

    @DbField(name = "is_public", length = -1, precision = 0)
    private Boolean isPublic;

    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}